$(function () {
    var a = sessionStorage.getItem("uid");
    a || console.error("uid not exist"),
        $.get(hostUrl + "/customer/info",
            function (a) {
                if(a.meta.success){
                    $("#card-no").text(a.data.bank_card_code), 
                    $("#bank-name").text(a.data.bank_name), 
                    $("#bank-branch").text(a.data.bank_branch), 
                    $("#bank-province").text(a.data.bank_province), 
                    $("#bank-city").text(a.data.bank_city);
                }else{
                    $.toptip(a.meta.message, "error");
                }
                
            }),
        $("#returnLink").on("click",
            function () {
                vipspa.setMessage({
                    id: "person_info",
                    content: {
                        tab: "uInfo"
                    }
                }),
                    location.hash = "trade"
            }),
        $("#edit-bank").on("click",
            function () {
                location.hash = "edit-bank"
            })
});